package com.lkm.app_ui.m.fun;

import com.google.gson.annotations.SerializedName;
import com.lkm.frame.otto.LinkBus;
import com.lkm.frame.otto.LinkBusEventFlag;
import com.lkm.frame.otto.ThreadEnforcer;



public class OnKeyNumberEvent implements LinkBusEventFlag {


    public static void sendKey(boolean isFinally, float number){
        LinkBus.sendBroadcast(new OnKeyNumberEvent(  isFinally,   number),null,true,null);
    }
    
    @SerializedName("isFinally")
    private final boolean isFinally;


    @SerializedName("number")
    private final float number;

    public OnKeyNumberEvent(boolean isFinally, float number) {

        this.isFinally = isFinally;
        this.number = number;
    }
    
    private volatile boolean isIntercepted;


    public boolean isIntercepted() {
        return isIntercepted;
    }

    public void setIntercepted(boolean intercepted) {
        isIntercepted = intercepted;
    }


    public boolean isFinally() {
        return isFinally;
    }

    

    public float getNumber() {
        return number;
    }

    

    public String getNumberStr() {
        return number+"";
    }

    @Override
    public ThreadEnforcer getThreadEnforcer() {
        return ThreadEnforcer.MAIN;
    }

    @Override
    public boolean isStickyBroadcast() {
        return false;
    }
}
